You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLValue Class > TOpenCLValue Methods > TOpenCLValue.ImagPart Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLValue.ImagPart Method

Gets the imaginary part of a complex value.

Syntax
C#
Visual Basic
public TOpenCLValue ImagPart([In] TOpenCLValue Vec);

Gets the imaginary part of a complex value Vec and stores the real result in the calling object. FloatPrecision and TOpenCLBase.ComplexComplexproperties of the calling object are set implicitly to match Vec object. Vec TOpenCLBase.ComplexComplexmust be true otherwise the exception will be raised.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TOpenCLValue a,b; clMtxVec.CreateIt(out a, out b); try { b.Copy(Cplx(8)); a.ImagPart(b); // a = 0 } finally { clMtxVec.FreeIt(ref a, ref b); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!